package com.isoftstone.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import com.isoftstone.entity.Menu;
import com.isoftstone.entity.Role;
import com.isoftstone.entity.Users;






public interface LoginDao {
	
	public Users getUsersBynameAndPass(@Param("username")String username,@Param("password")String password);

	public Role getRoleByUserId(@Param("user_id")String user_id);

	public List<Menu> getParentMenuList(@Param("roleId")String roleId);

	public List<Menu> getChildrenMenuListByParentAndRole(@Param("parentId")String parentId, @Param("roleId")String roleId);
}
